<?php

	$chosenLanguage = "";
	
	if(@$_GET['language'])
		$chosenLanguage = $_GET['language'];
		
	$sql = "select distinct x_module FROM ".$PROJECT_DB_TABLES["tags"]." WHERE x_language = '".$chosenLanguage."'";
	
	$result = getRecord($sql);
	
	if(count($result)>0){
		
		addContent("<option value=\"@clearing\" onclick=\"onchange_chooseModule()\">Loading...</option>");
		
		foreach($result as $item){
			
			addContent("<option value=\"".$item['x_module']."\" onclick=\"onchange_chooseModule()\">".$item['x_module']."</option>");
		}
	}

?>